home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / term / extras / source / term-source.lha / PreInclude.h < prev    next >
C/C++ Source or Header  |  1995-03-19  |  8KB  |  282 lines

  1. /*
  2. **    PreInclude.h
  3. **
  4. **    Definition file for precompiled header file
  5. **
  6. **    Copyright © 1990-1995 by Olaf `Olsen' Barthel
  7. **        All Rights Reserved
  8. */
  9.  
  10.     /* System includes (just a few). */
  11.  
  12. #include <intuition/intuitionbase.h>
  13. #include <intuition/gadgetclass.h>
  14. #include <intuition/imageclass.h>
  15. #include <intuition/sghooks.h>
  16. #include <intuition/cghooks.h>
  17. #include <intuition/classes.h>
  18. #include <intuition/icclass.h>
  19.  
  20. #include <datatypes/pictureclass.h>
  21. #include <datatypes/soundclass.h>
  22.  
  23. #include <workbench/workbench.h>
  24.  
  25. #include <libraries/commodities.h>
  26. #include <libraries/translator.h>
  27. #include <libraries/amigaguide.h>
  28. #include <libraries/gadtools.h>
  29. #include <libraries/iffparse.h>
  30.  
  31. #include <graphics/videocontrol.h>
  32. #include <graphics/gfxmacros.h>
  33. #include <graphics/gfxbase.h>
  34. #include <graphics/rpattr.h>
  35. #include <graphics/scale.h>
  36.  
  37. #include <libraries/locale.h>
  38. #include <libraries/asl.h>
  39.  
  40. #include <devices/inputevent.h>
  41. #include <devices/clipboard.h>
  42. #include <devices/narrator.h>
  43. #include <devices/console.h>
  44. #include <devices/conunit.h>
  45. #include <devices/serial.h>
  46. #include <devices/audio.h>
  47. #include <devices/input.h>
  48. #include <devices/timer.h>
  49.  
  50. #include <hardware/intbits.h>
  51. #include <hardware/dmabits.h>
  52. #include <hardware/custom.h>
  53. #include <hardware/cia.h>
  54. #include <hardware/blit.h>
  55.  
  56. #include <dos/filehandler.h>
  57. #include <dos/dosextens.h>
  58. #include <dos/datetime.h>
  59. #include <dos/doshunks.h>
  60. #include <dos/dostags.h>
  61. #include <dos/rdargs.h>
  62. #include <dos/dosasl.h>
  63. #include <dos/var.h>
  64.  
  65. #include <exec/execbase.h>
  66. #include <exec/devices.h>
  67. #include <exec/memory.h>
  68. #include <exec/errors.h>
  69.  
  70. #include <prefs/prefhdr.h>
  71. #include <prefs/serial.h>
  72.  
  73. #include <utility/date.h>
  74.  
  75. #include <clib/macros.h>
  76.  
  77. #include <rexx/rxslib.h>
  78. #include <rexx/errors.h>
  79.  
  80.     /* Function prototypes. */
  81.  
  82. #include <clib/commodities_protos.h>
  83. #include <clib/translator_protos.h>
  84. #include <clib/rexxsyslib_protos.h>
  85. #include <clib/amigaguide_protos.h>
  86. #include <clib/intuition_protos.h>
  87. #include <clib/datatypes_protos.h>
  88. #include <clib/graphics_protos.h>
  89. #include <clib/gadtools_protos.h>
  90. #include <clib/iffparse_protos.h>
  91. #include <clib/diskfont_protos.h>
  92. #include <clib/console_protos.h>
  93. #include <clib/utility_protos.h>
  94. #include <clib/keymap_protos.h>
  95. #include <clib/layers_protos.h>
  96. #include <clib/locale_protos.h>
  97. #include <clib/timer_protos.h>
  98. #include <clib/alib_protos.h>
  99. #include <clib/icon_protos.h>
  100. #include <clib/exec_protos.h>
  101. #include <clib/dos_protos.h>
  102. #include <clib/asl_protos.h>
  103. #include <clib/wb_protos.h>
  104.  
  105.     /* Include the following direct library interface definitions. */
  106.  
  107. #ifndef DEBUG
  108. #include <pragmas/console_pragmas.h>
  109. #include <pragmas/utility_pragmas.h>
  110. #include <pragmas/keymap_pragmas.h>
  111. #include <pragmas/layers_pragmas.h>
  112. #include <pragmas/timer_pragmas.h>
  113. #include <pragmas/exec_pragmas.h>
  114. #endif    /* DEBUG */
  115.  
  116.     /* Standard `C' includes. */
  117.  
  118. #include <string.h>
  119. #include <stdarg.h>
  120. #include <stdlib.h>
  121. #include <stddef.h>
  122.  
  123. #include <dos.h>
  124.  
  125.     /* Special character codes. */
  126.  
  127. #define XOF '\21'
  128. #define XON '\23'
  129.  
  130. #define BEL '\a'
  131. #define VTB '\v'
  132. #define TAB '\t'
  133. #define BKS '\b'
  134. #define ENT '\n'
  135. #define RET '\r'
  136. #define ESC '\033'
  137. #define DEL '\177'
  138. #define FFD '\f'
  139. #define CAN '\030'
  140. #define SUB '\032'
  141. #define ENQ '\005'
  142. #define SI  '\016'
  143. #define SO  '\017'
  144.  
  145.     /* Internally handled control keys. */
  146.  
  147. #define CUP 150
  148. #define CDN 151
  149. #define CFW 152
  150. #define CBK 153
  151.  
  152. #define FN1 128
  153. #define FN2 129
  154. #define FN3 130
  155. #define FN4 131
  156. #define FN5 132
  157. #define FN6 133
  158. #define FN7 134
  159. #define FN8 135
  160. #define FN9 136
  161. #define F10 137
  162.  
  163. #define HLP 149
  164.  
  165.     /* Control sequence introducer. */
  166.  
  167. #define CSI 155
  168.  
  169.     /* Standard IFF chunk types. */
  170.  
  171. #define ID_8SVX    MAKE_ID('8','S','V','X')    /* Eight bit sampled voice. */
  172. #define ID_VHDR    MAKE_ID('V','H','D','R')    /* Voice header. */
  173. #define ID_CHAN MAKE_ID('C','H','A','N')    /* Sound channel information. */
  174. #define ID_FTXT    MAKE_ID('F','T','X','T')    /* Formatted text. */
  175. #define ID_CHRS    MAKE_ID('C','H','R','S')    /* Character data. */
  176. #define ID_BODY    MAKE_ID('B','O','D','Y')    /* Generic data body chunk. */
  177.  
  178.     /* `term' private chunk types. */
  179.  
  180. #define ID_DATE    MAKE_ID('D','A','T','E')    /* Date and time information. */
  181. #define ID_NAME    MAKE_ID('N','A','M','E')    /* Date and time patterns. */
  182. #define ID_DIAL    MAKE_ID('D','I','A','L')    /* Number of phonebook entries. */
  183. #define ID_FAST    MAKE_ID('F','A','S','T')    /* Fast! macro settings. */
  184. #define ID_TRAP    MAKE_ID('T','R','A','P')    /* Trap command. */
  185. #define ID_SEQN    MAKE_ID('S','E','Q','N')    /* Trap sequence. */
  186. #define ID_TRST MAKE_ID('T','R','S','T')    /* Trap settings. */
  187. #define ID_HOTK    MAKE_ID('H','O','T','K')    /* Hotkey settings. */
  188. #define ID_KEYS    MAKE_ID('K','E','Y','S')    /* Function key settings. */
  189. #define ID_PHON    MAKE_ID('P','H','O','N')    /* Phonebook data. */
  190. #define ID_PREF    MAKE_ID('P','R','E','F')    /* Preferences data chunk. */
  191. #define ID_PSWD    MAKE_ID('P','S','W','D')    /* Password entry. */
  192. #define ID_RECV    MAKE_ID('R','E','C','V')    /* Translation table data (receiver side). */
  193. #define ID_SEND    MAKE_ID('S','E','N','D')    /* Translation table data (sender side). */
  194. #define ID_TRNS    MAKE_ID('T','R','N','S')    /* Translation table data (master table). */
  195. #define ID_SPEK    MAKE_ID('S','P','E','K')    /* Speech settings. */
  196. #define ID_TERM    MAKE_ID('T','E','R','M')    /* `term' data chunk. */
  197. #define ID_VERS    MAKE_ID('V','E','R','S')    /* Version identification. */
  198. #define ID_WIND    MAKE_ID('W','I','N','D')    /* Fast! macro window size and position. */
  199. #define ID_SOUN    MAKE_ID('S','O','U','N')    /* Sound settings. */
  200. #define ID_WINF    MAKE_ID('W','I','N','F')    /* Window position/size information. */
  201.  
  202.     /* `term' configuration and phonebook file chunk types. */
  203.  
  204. #define ID_SERL    MAKE_ID('S','E','R','L')    /* Serial settings. */
  205. #define ID_MODM    MAKE_ID('M','O','D','M')    /* Modem settings. */
  206. #define ID_COMD    MAKE_ID('C','O','M','D')    /* Command settings. */
  207. #define ID_SCRN    MAKE_ID('S','C','R','N')    /* Screen settings. */
  208. #define ID_TRML    MAKE_ID('T','R','M','L')    /* Terminal setting. */
  209. #define ID_PATH    MAKE_ID('P','A','T','H')    /* Path settings. */
  210. #define ID_MISC    MAKE_ID('M','I','S','C')    /* Misc settings. */
  211. #define ID_CLIP    MAKE_ID('C','L','I','P')    /* Clip settings. */
  212. #define ID_CPTR    MAKE_ID('C','P','T','R')    /* Capture settings. */
  213. #define ID_FILE    MAKE_ID('F','I','L','E')    /* File settings. */
  214. #define ID_EMLN    MAKE_ID('E','M','L','N')    /* Emulation settings. */
  215. #define ID_XFER    MAKE_ID('X','F','E','R')    /* Transfer settings. */
  216.  
  217.     /* Use a simple address trick instead of the predefined
  218.      * address in amiga.lib.
  219.      */
  220.  
  221. #ifndef custom
  222. #define custom (*(struct Custom *)0xDFF000L)
  223. #endif    /* custom */
  224.  
  225.     /* These seem to have got lost... */
  226.  
  227. #ifndef MTYPE_APPWINDOW
  228. #define MTYPE_APPWINDOW    7
  229. #endif    /* MTYPE_APPWINDOW */
  230.  
  231. #ifndef MTYPE_APPICON
  232. #define MTYPE_APPICON    8
  233. #endif    /* MTYPE_APPICON */
  234.  
  235. #ifndef MTYPE_APPMENUITEM
  236. #define MTYPE_APPMENUITEM    9
  237. #endif    /* MTYPE_APPMENUITEM */
  238.  
  239.     /* Cast the DICE... */
  240.  
  241. #ifdef _DCC
  242. #define __saveds    __geta4
  243. #define __stdargs    __stkargs
  244. #define __asm
  245. #endif    /* _DCC */
  246.  
  247.     /* Single precision boolean value. */
  248.  
  249. typedef char BOOLEAN;
  250.  
  251.     /* Include string IDs. */
  252.  
  253. #include "termStrings.h"
  254.  
  255.     /* Include the OwnDevUnit definitions. */
  256.  
  257. #include "OwnDevUnit.h"
  258.  
  259.     /* Include the XPR definitions. */
  260.  
  261. #include "xproto.h"
  262.  
  263.     /* Include the XEM definitions. */
  264.  
  265. #include "xem.h"
  266.  
  267.     /* Include the rendezvous interface definitions. */
  268.  
  269. #include "Rendezvous.h"
  270.  
  271.     /* If desired, include the global definitions and prototypes as well. */
  272.  
  273. #ifdef INCLUDEALL
  274. #include "termGlobal.h"
  275. #include "termARexxAttributes.h"
  276. #include "termARexxGlobal.h"
  277. #endif    /* INCLUDEALL */
  278.  
  279.     /* The user interface definitions. */
  280.  
  281. #include "gtlayout.h"
  282.